package com.zzyl.nursing.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.nursing.domain.NursingPlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 护理计划Mapper接口
 */
@Mapper
public interface NursingPlanMapper extends BaseMapper<NursingPlan> {

    //查询所有护理计划的ID和名称
    @Select("select id, plan_name planName from nursing_plan where status = 1")
    List<NursingPlan> listAll();

    //查询护理计划列表
    public List<NursingPlan> selectNursingPlanList(NursingPlan nursingPlan);

    //查询护理计划
    public NursingPlan selectNursingPlanById(Long id);

    //新增护理计划
    public int insertNursingPlan(NursingPlan nursingPlan);

    //修改护理计划
    public int updateNursingPlan(NursingPlan nursingPlan);

    //删除护理计划
    public int deleteNursingPlanById(Long id);
}